﻿@model IEnumerable<KRM.Core.vCostsPerProductOptionBreakDown>
<div class="container-fluid">
    <div class="row-fluid">
        <div class="fieldset">
            <div class="legend"><span>Breakdown</span></div>
  @*          <div class="row-fluid text-right" style="margin-bottom: 10px;">
                <button class="btn btn-info w90" type="button" onclick="ExportCSVWithHead($('.tbody-1'), 'Table.csv', $('.thead-1'))">
                    <img src="/img/icon-exel.png" style="max-height: 20px">
                    Export</button>
            </div>*@
            <div class="row-fluid">
                    <table class="table table-bordered table-fix table-breakdown" data-height="150">
                        <thead class="thead-1">
                            <tr>
                                <th>FAC51</th>
                                <th>Qty</th>
                                <th>PartID</th>
                                <th>PartName</th>
                                <th>UnitCost</th>
                                <th>CarriageCharge</th>
                                <th>TotalCost</th>
                                <th>StockLevel</th>
                                <th>Availability</th>
                                <th>ExpectedStockArrival</th>
                                <th>TotalWeight</th>
                                <th>TotalPackages</th>
                                <th>PartsTradeCost</th>
                                <th>PartsCarriage</th>
                            </tr>
                        </thead>
                        <tbody class="tbody-1">
                            @foreach (var item in Model)
                            {
                                <tr>
                                    <td>@item.FAC51</td>
                                    <td>@item.Qty</td>
                                    <td>@item.PartID</td>
                                    <td>@item.PartName</td>
                                    <td>@item.UnitCost</td>
                                    <td>@item.CarriageCharge</td>
                                    <td>@item.TotalCost</td>
                                    <td>@item.StockLevel</td>
                                    <td>@item.Availability</td>
                                    <td>@item.ExpectedStockArrival</td>
                                    <td>@item.TotalWeight</td>
                                    <td>@item.TotalPackages</td>
                                    <td>@item.PartsTradeCost</td>
                                    <td>@item.PartsCarriage</td>
                                </tr>
                            }
                        </tbody>
                    </table>
            </div>
        </div>
    </div>
</div>